//
//  ListViewController.m
//  MKUITestApp
//
//  Created by 苏尚进 on 2023/7/10.
//  Copyright © 2023 moon. All rights reserved.
//

#import "ListViewController.h"

@interface ListViewController ()

@end

@implementation ListViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.listView = [[MKUIListView alloc] init];
    self.listView.sectionInteritemSpacing = 10;
    self.listView.separatorStyle = MKUIListViewCellSeparatorStyleSingleLine;
    [self.view addSubview:self.listView];
}
- (void)viewWillLayoutSubviews{
    [super viewWillLayoutSubviews];
    CGRect bounds = self.view.bounds;
    self.listView.frame = bounds;
}
- (void)viewDidAppear:(BOOL)animated{
    [super viewDidAppear:animated];
    [self.listView deselectAllItemsWithAnimated:YES];
}
@end
